local db = TUNING.MOD_MOD_PONO.badge.mod_pono_energy

---@type data_badge[]
local data = {
    {
        animzipname = 'custom_status_meter',
        meter_color = {230/255,176/255,255/255,1},
        meter_maxnum = db.max,
        badgeid = 'power_badge',
        pos = {-200,35},
        eventname = 'mod_pono_energy_val_change',
            eventfn = function(badge,owner)
            if owner and owner.replica.mod_pono_energy then
                local val = owner.replica.mod_pono_energy:GetVal()
                -- 传入当前值和最大值，让 Widget 自行计算百分比
                badge:SetPercent(val, db.max)
            end
        end,
        owners = {"pono"},
    }
}


return data